package com.example.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.entity.Grade;
import com.example.entity.Teacher;
import com.example.repository.GradeRepository;

@Service
public class GradeService {
	@Autowired
	private GradeRepository gradeRepository;
    public void setGrade(Grade g){
    	gradeRepository.save(g);
    }
}
